<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:c="http://java.sun.com/jstl/core"
	  lang="pt-br">
    <body>
        
        <ui:composition template="template/template.xhtml">
            
            <ui:define name="titulo">
                Amo Estrada
            </ui:define>

            <ui:define name="conteudo">
    
			   <div id="checkout">
		     
			            <legend>Formulário do Usuário</legend> 
			            
			            <span jsfc="h:messages" globalOnly="true" errorClass="global-error"></span><br />
			            
                                    <label jsfc="h:outputLabel" for="email">
                                            E-mail <span style="color: #FF0000">*</span>:
                                    </label>
                                    <input jsfc="h:inputText" type="text" id="email" 
                                                    value="#{usuarioController.usuario.email}"
                                                    styleClass="field" required="true" 
                                                    validator="#{usuarioController.validaEmail}"                                                    
                                                    size="30"
                                                    />
                                    <span jsfc="h:message" for="email" styleClass="msg"></span><br />
                                    
                                    <label jsfc="h:outputLabel" for="senha">Senha </label>
                                    <input jsfc="h:inputText" id="senha" 
                                                    value="#{usuarioController.usuario.senha}"
                                                    styleClass="field" required="true" />
                                    <span jsfc="h:message" for="senha" styleClass="msg"></span><br /><br />
                                    
			            <span style="color: #FF0000">*</span> 
			            Seu e-mail será usado como login (nome de usuário).
			            <br /><br />
                                    
			            <input jsfc="h:commandButton" type="submit" 
			            		action="#{usuarioController.salvar}"
			            		id="confirmar" value="Confirmar"/>
		                      
			    </div>
    
    
            </ui:define>

        </ui:composition>
        
    </body>
</html>
